//
// Created by two8g on 17-11-27.
//

#include "AddHourlyEmployee.h"
#include "HourlyClassification.h"
#include "WeeklySchedule.h"

using namespace std;

AddHourlyEmployee::~AddHourlyEmployee() {

}

AddHourlyEmployee::AddHourlyEmployee(int empId, string name, string address, double hourlyRate)
    : AddEmployeeTransaction(empId, name, address), itsHourlyRate(hourlyRate) {}

PaymentClassification* AddHourlyEmployee::GetClassification() const {
    return new HourlyClassification(itsHourlyRate);
}

PaymentSchedule* AddHourlyEmployee::GetSchedule() const {
    return new WeeklySchedule();
}
